#include"khaibao.h"
int Menu()
{
	int cv,k=0;
	do
	{
		cout<<"\n1.Import";k++;
		cout<<"\n2.EXport";k++;
		cout<<"\n3.AddHead";k++;
		cout<<"\n4.AddTail";k++;
		cout<<"\n5.AddBitween";k++;
		cout<<"\n6.DeleteHead";k++;
		cout<<"\n7.DeleteTail";k++;
		cout<<"\n8.DeleteBitween";k++;
		cout<<"\n0.Exit";k++;
		cout<<"\nPlease import element:";

		cin>>cv;
	}while(cv<0 || cv>k);
	return cv;
}
int main()
{
	int cv;
	list l;
		do
		{
			cv=Menu();
			switch(cv)
			{
				case 1:
					Import(l);
					break;
				case 2:
					Export(l);
					break;
				case 3:
					AddHead(l);
					break;
				case 4:
					AddTail(l);
					break;
				case 5:
					AddBetween(l);
					break;
				case 6:
					DeleteHead(l);
					break;
				case 7:
					DeleteTail(l);
					break;
				case 8:
					DeleteBetween(l);
					break;
				case 0:
					break;
			}

		}while(cv>0);

	return 0;
}
